package sample;

public class Product {
    private String name;
    private String productno;
    private String price;
    private String unit;
    private int stockcount;
    private String discount;
    private String manufacturer;

    public Product(String name, String productno, String price, String unit, int stockcount, String discount, String manufacturer) {
        this.name = name;
        this.productno = productno;
        this.price = price;
        this.unit = unit;
        this.stockcount = stockcount;
        this.discount = discount;
        this.manufacturer = manufacturer;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getProductno() {
        return productno;
    }

    public void setProductno(String productno) {
        this.productno = productno;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public int getStockcount() {
        return stockcount;
    }

    public void setStockcount(int stockcount) {
        this.stockcount = stockcount;
    }

    public String getDiscount() {
        return discount;
    }

    public void setDiscount(String discount) {
        this.discount = discount;
    }

    public String getManufacturer() {
        return manufacturer;
    }

    public void setManufacturer(String manufacturer) {
        this.manufacturer = manufacturer;
    }

    @Override
    public String toString() {
        return  productno+"\t\t  "+ manufacturer + "\t\t  " + name +
                "\t" + price + "\t\t" + unit + "\t\t" +  discount + "\t\t"+stockcount+"部";
    }
}
